package link.wangkui.multiThreads;

public class ThreadTest {
    public static void main(String[] args) {
        MyThread myThread1=new MyThread();
        myThread1.setName("wk1");
        MyThread myThread2=new MyThread();
        myThread2.setName("wk2");
        MyThread myThread3=new MyThread();
        myThread3.setName("wk3");
        System.out.println(Thread.currentThread().getName());
        myThread1.start();
        myThread2.start();
        myThread3.start();
    }
}
class MyThread  extends Thread{
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }
}